package com.bjpower.models.request;


import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * 前端返回给前端的数据 添加BeanValidation校验
 * 添加自定义异常处理
 */
@Data
public class OperatorLoginRequest {

    @NotNull
    @Size(min = 5, max = 20,message = "登录用户名长度在4-20位之间")
    private String loginName;

    @NotNull
    @Size(min = 32, max = 35,message = "登录密码长度在32-35位之间")
    private String loginPwd;
}
